<?php

class friends_controller_admin_index extends AdminController {
	public function embedprofile_action(){
		$this->_renderSingle();
		$o = Model::factory('friends_model_data');
		$this->ret = self::success($o->selectByPage($this->uid, 1, $this->page, 30));
	}
	
	public function index_action(){
		$o = Model::factory('friends_model_data');
		$top = $o->getTopFriendsOwner();
		$avg = $o->getAvgFriends();
		$this->ret = self::success(array('top'=>$top, 'avg'=>$avg));
	}
}